setmacro fsearch 1 (ping 8 while 1 (fail? \\\$arg1 if \\\$fail (pong 8 break) if x=\\\$firstnb (push wordwrap wordwrap off overwrite (\\\$findstr) pop wordwrap when ca prev prev break)))
setmacro goright 0 (ifelse r (down firstnb) right)
setmacro goto-mark 0 (goto (\$my) col (\$mx))
setmacro gox 0 (col \$x)
setmacro goy 0 (goto \$y)
setmacro gtb-aspell 0 (source XES:S/alphaspell.xrc deflist List1 deflist List2 setgtbgadget as as words 0 setgtbgadget as as k \$k set idx0 0 set idx1 0 set idx2 0 opengtbwindow as as)
setmacro gtb-check 0 (gtb-aspell connectgtbgadget as as words List0 set lst 0 setgtbgadget as as view 0 set wholeword 1)
setmacro gtb-guess 0 (force rf (droplist List0) deflist List0 gtb-aspell connectgtbgadget as as words List1 set lst 1 setgtbgadget as as view 1 setgtbgadget as as word \$currentword)
setmacro gtb-local 0 (source XES:S/local.xrc connectgtbgadget ls ls xpkm xpk eval (setgtbgadget ls ls xpkm \$(xpk/\$method/*Value*)) setgtbgadget ls ls xpkp \$password setgtbgadget ls ls ign \$ignorecase set-local opengtbwindow ls ls)
setmacro sort-block 0 (bsave t:temp smv o (Fsort FROM T:TEMP TO T:TEMP) block-type? if !\$ignorecase (smv o (\\\$o CASE)) if !5 (goto start smv cs \\\$colno goto end minus w \\\$colno \\\$cs inc w smv o (\\\$o COLSTART \\\$cs WIDTH \\\$w)) title (\$o))
setmacro until 2 (while 1 (\$arg1 if \$arg2 break))
setmacro wfind 1 (findstr (\$arg1) wsearch next)
setmacro when 2 (if (\$arg1) (\$arg2 continue))
setmacro wprev 1 (findstr (\$arg1) wsearch prev)
setmacro wsearch 1 (get-len lng (\$findstr) ping 8 while 1 (fail? \\\$arg1 if \\\$fail (pong 8 break) if !l (left when ca right right) repeat \$lng right when ca prev prev break))